Socket
Socket
Sign inDemoInstall

@pluginjs/component

Package Overview
Dependencies
0
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pluginjs/component

A workflow for modern frontend development.


Version published
Weekly downloads
14
decreased by-22.22%
Maintainers
2
Install size
12.2 kB
Created
Weekly downloads
 

Readme

Source

Component

npm package

A flexible modern component js plugin.

Samples

Introduction

Installation

Yarn
yarn add @pluginjs/component
NPM
npm i @pluginjs/component

Getting Started

CDN:

Development:

<script src="https://unpkg.com/@pluginjs/component/dist/component.js"></script>

Production:

<script src="https://unpkg.com/@pluginjs/component/dist/component.min.js"></script>

Initialize

HTML:

<div class="element"></div>

ECMAScript Module:

import Component from "@pluginjs/component"

Component.of(document.querySelector('.element'), options)

CommonJS:

const Component = require("@pluginjs/component")

Component.of(document.querySelector('.element'), options)

Browser:

<script src="https://unpkg.com/@pluginjs/component/dist/component.js"></script>
<script>
  Pj.component('.element', options)
</script>

API

Browser support

Tested on all major browsers.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

License

@pluginjs/component is Licensed under the GPL-v3 license.

If you want to use @pluginjs/component project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.

For purchase an Commercial License, contact us purchase@thecreation.co.

Copyright (C) 2018 Creation Studio Limited.

FAQs

Last updated on 15 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc